<%@page import="news.biz.BoardBiz"%>
<%@page import="news.entity.Board"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
			request.setCharacterEncoding("UTF-8");
			response.setCharacterEncoding("UTF-8");	
			
			int boardIds=Integer.parseInt(request.getParameter("boardId"));
			String boardNames=request.getParameter("boardName");
			Board bao=new Board(boardIds,boardNames);
			
			BoardBiz boardBiz=new BoardBiz();
			boolean flag=boardBiz.updateBoard(bao);
			
			if(flag){
				request.getRequestDispatcher("boardList.jsp").forward(request, response);
			}else{
				response.sendRedirect("editBoardById");
			}
			
%>


